def parse_as_string(raw):
    """ Parses the given value as string. Strips spaces, tabs, newlines, carriage
    returns, single and double quotation marks of the ends."""
    return raw.strip("\t\n\r \"'")