OverIQ.com
Run (or Hit F9)
s1 = "\n\tName\tAge" print(s1) s2 = s1.strip() print(s2) s3 = "--Name\tAge--" print(s3.strip("-")) # return a new copy of string after removing # the dash(-) character from beginning and end of the string