Added check for 'locals' object in response. Fixed regex filter issue for iOS