• Remove specified character from start and/or end of target string.

    Parameters

    • source: string

      String to remove character from.

    • toTidy: string

      Character to remove.

    • mode: TTidyStringModes = 'both'

      If character should be removed from start, end. or both.

    Returns string

    • Final string.