fixes to typos in Utility.py and searchPatterns