Java String Replace First Occurrence Leetcode Problem 200