string formatting fixes