def stripQuotes(s):
        """Remove surrounding quotes if there are any.

        The function returns the string without surrounding quotes
        (i.e. '"foo"' -> 'foo'). If there are no quotes the string
        is returned unchanged.
        """
        if s[0]=='"':
                return s[1:-1]
        return s