Make check for localized variable more specific and use a string for the returned type

Eliminated javascript warning error caused by trying to do acceptabile countries processing when not appropriate