Update Collector.php

It's much faster than preg_match.
Merge pull request #8 from ofca/patch-1

Update Collector.php
typos
Merge branch 'typosInForeignKey'