Java String Replace First Occurrence Leetcode 75300 Lego