Deletes extra space inside brackets and alphabetizes validations