Fixing scope problem. Should return string, was returing an array.