strip extra spaces in the property value