// We want to replace every # with a 8 String larry = "Larry is # years old"; String newString = larry.replace("#", "8");