String (String name) { if (name.endsWith(" s.r.o.")) name = name.substring(0, name.length() - " s.r.o.".length()); if (name.endsWith(" Inc.")) name = name.substring(0, name.length() - " Inc.".length()); return name; }