Python get string after last occurrence of character. The rfind() method returns -1 if the value is not found.