format to strip spaces