Ad
  • Default User Avatar

    not sure if best practice, but you can use basic indexing:

    str = str[1..str.size-2]