code: public String removeSuffix(String original, String suffix) {
          if (original.endsWith(suffix)) {
              return original.substring(0, original.length() - suffix.length());
          }
          return original;
      }
docs: This method removes the supplied suffix (if it exists) in the
  supplied 'original' string.
  
  @param original The original string
  @param suffix The suffix to remove
  @return The modified string