trim value in validation