code: def clone_name(s, ca=False):
      
      if not ca:
          return s[:-1]
  
      if s[0] == '1':
          return s[2:]
      return s.rstrip('ab')
docs: >>> clone_name("120038881639")
      "0038881639"
      >>> clone_name("GW11W6RK01DAJDWa")
      "GW11W6RK01DAJDW"