Trims a String in Swift on a given side.
This file is written in Swift 4, which requires Xcode 9+.
strippingPadding(off:, paddingCharacter: default) -> String
Given a side (and a padding character [defaults to "0"]), this method will return a new string with all instances of
paddingCharacter removed from the given side. This will not affect instances of
paddingCharacter in between other characters.
- The beginning of the string
- The end of the string