Compact down the replacement of time strings