Again, you should not need to find index. Something like this should work (for both cases with or without ms):
```
ts = words[0].split('.')[0]
```