Fix time string