Fixed sanitization match index

preg_match returns index 0 as the whole string