code: public static String cutSuffix(String time) {
  
          String ret = time.toLowerCase();
          if (ret.toLowerCase().contains(CmsDateConverter.AM) || ret.toLowerCase().contains(CmsDateConverter.PM)) {
              if (ret.length() > 5) {
                  ret = ret.replace(CmsDateConverter.AM, "");
                  ret = ret.replace(CmsDateConverter.PM, "");
                  ret = ret.trim();
              }
          }
          return ret;
      }
docs: Cuts the suffix (am or pm) from a given time String.<p>
  
  If the given String has less than 5 characters an dosen't
  contains an am or pm in it the original String is returned.<p>
  
  @param time the time String to cut the suffix from
  
  @return the time String without the suffix or the original String if the format of the String is incorrect