add case to substring search