code: def padStr(s, field=None):
      
      if field is None:
          return s
      else:
        if len(s) >= field:
            return s
        else:
            return " " * (field - len(s)) + s
docs: Pad the begining of a string with spaces, if necessary.