def remove_quotes(string):
    """
    Remove quotes from string.

    Ex.:
      "foo" -> foo
      'foo' -> foo
      'foo  -> 'foo

    """
    quotes = '"', "'"
    if string.startswith(quotes) and string.endswith(quotes):
        return string[1:-1]
    return string
