Remove multiple spaces in element[prop]