Build a String object with placeholders in Java