fix ignoring spaces