Fixes latest build on master : trailing_spaces
Merge branch 'cs/#6939-trailing-spaces-in-zend-validator-hostname'

Close #6939