trim leading and trailing slashes, at the beginning and end of a string.

  • Parameters

    • str: string

    Returns string