only add the time if the string needs it