How to split a string into two looking from the end of the string and using a string as separator?