Corrected string formatting issues