Switched from regexp parsing to index/substr based parsing for handling REAL garbage