fixed rsplit for case when separator is at index 1