fix string formatting and blank lines