The method find will return the character position in a string. Then, if you want remove every thing from the character, do this:
mystring = "123?567"
mystring[ 0 : mystring.index("?")]
>> '123'
If you want to keep the character, add 1 to the character position.