Delete null check and store String.format.