use indexOF instead of contains