substrings to indexOf where possible, and case matching in the response string should no longer be a problem