fix string formatting errors