Added test case for better whitespace handling
Renamed hasName to contains. Reversed yoda conditions :)