Replace use of index() with Ustrchr()