ValidationResultFactory method now checks if argument is empty string.