Removing extra spaces added via jquery