fixed unbalanced quotes and string format calls