Switched to a better version of the GetStrings() function