slice string before a keyword code example
Example: how to fetch all chars of a string before a space in python
>>> s1.split(':')
['Username', ' How are you today?']
>>> s1.split(':')[0]
'Username'
>>> s1.split(':')
['Username', ' How are you today?']
>>> s1.split(':')[0]
'Username'