Check if the argument is a string which works for both Python 2 and 3.
Definition at line 53 of file web_widget.py.