Remove useless trainling whitespaces
Add minLength default to 5