Strip the format so the tailing spaces aren't included in the format