Fixes spaces issues in form elements attributes