How To Replace An Index Of A String In Java