Nevermind, that last issue is actually resolved by making all the strings uppercase, as the code intended to do.