You can use str.replace(":", " ")
to remove the "::"
.
To split, you need to specify the character you want to split into: str.split(" ")
The trim function is called strip in python: str.strip()
Also, you can do str[:7]
to get just "vendor x"
in your strings.
Good luck