Strips leading/trailing characters from the input string. Particularly useful for extracting information from FITS file headers which are embedded in a complex string, for example.
Usage
strip(x, strip = " ")
Arguments
x
input string
strip
character to be stripped (may be a vector)
Details
Characters in the string will be stripped 'outside in', from left-to-right in the order they are given in the argument. See examples below for more detail.