fix #2404: Remove spaces when editing coordinates