I think you can use FirstIndexOfChar here.