Fixed an incorrect startsWith. Replaced with indexOf.