Trim whitespace from attribute value
Use correct variable!