Java String Replace First Occurrence Leetcode 7530 Toilet