help match replaced with indexof for special characters