Adjust scopes method to handle strings properly on ios.
Working on android side.