Bug in startsWith