static String removeTagFromWord(String word, Tag tagToRemove) {
    return word.matches(tagToRemove.getText() + "(\\W+.*)*")
        ? word.replace(tagToRemove.getText(), "")
        : word;
  }
@Test
  public void removeTagFromWord() {
    String word = TAG3 + "(and";

    String result = TagsHelper.removeTagFromWord(word, TAG3);

    assertEquals("(and", result);
  }