Question: I save phone number in Database using Spring Data JPA , 

In model I define this  

`private String directPhone;`

while saving `supplier.directPhone="99250397679"`

And In DB it save in exponential Form

It save in this form `direct_phone: 9.925039767E9`

```
Supplier supplier=supplierRepository.findOne(new Long(1));

```

And while receiving it give me in exponential Form .

But I want in String form . Help me to get in String form. Same thing happen with `year=2005` and it save `year=2005.0`

Answer: 
Use `words = len(line.split(' '))` instead of `words = len(line.strip(' '))`.

Update:

Instead of the second opening of the file, use:
`for name in names_list:`

Update2:

You can simplify this further with:

```
with open(filename, 'r') as file:
    for line in file:
        print(len(line.strip().split()))

```
I think you meant [`.split()`](https://docs.python.org/2/library/string.html) instead of [`.strip()`](https://docs.python.org/2/library/stdtypes.html#str.strip). Replace:

```
words = len(line.strip(' '))

```

with:

```
words = len(line.split())

```