I am using express validator for validation. I wanted to check if the name is not empty and if it exists then remove the extra spaces between the string.