Replaced strpos with token_scan. Please find the attached patch.