#!/usr/bin/env python3; ############################################################################### # This program illustrates some of the string functions in Utils # # Copyright © 2020 Richard Lesh. All rights reserved. ############################################################################### import Utils ltrstr = " Spaces to the left" rtrstr = "Spaces to the right " trimstr = " Spaces at each end " blank = " \t\n " lowerstr = "This String is Lowercase" upperstr = "This String is Uppercase" # Begin Main print(str("|") + ltrstr.lstrip() + str("|")) print(str("|") + rtrstr.rstrip() + str("|")) print(str("|") + trimstr.strip() + str("|")) print(str("|") + blank.strip() + str("|")) print(str("|") + lowerstr.lower() + str("|")) print(str("|") + upperstr.upper() + str("|"))