Clean up element, removing extra spaces