Warnings not being caught

brackets were the wrong way when testing the string.