convert % to spaces