title: Thymeleaf for each string replace a substring
body: <p>I have a list of objects. Every Object has a name with a specific prefix. Now I want to replace this prefix with an empty String.</p>
  
  <p>My Code:</p>
  
  <p>Controller:</p>
  
  <pre><code>@Secured("ROLE_ADMIN")
  @RequestMapping(value = "/admin/userManagement", method = RequestMethod.GET)
  public String showUserManagement(Model model) {
      model.addAttribute("userList", userDelegate.getAllUserForClient(getCompanyAuthority().getName()));
      model.addAttribute("companyName", getCompanyAuthority().getName());
      return "admin/user_management";
  }
  </code></pre>
  
  <p>My html snippet:</p>
  
  <pre><code>&lt;table class="table table-striped table-hover"&gt;
      &lt;thead&gt;
          &lt;tr&gt;
              &lt;th&gt;ID&lt;/th&gt;
              &lt;th&gt;E-mail&lt;/th&gt;
              &lt;th th:text="#{adminArea.userManagementReport}"&gt;Reports&lt;/th&gt;
              &lt;th th:text="#{adminArea.userManagementRole}"&gt;&lt;/th&gt;
              &lt;th&gt;Edit&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
          &lt;tr th:each="user,itrStat : ${userList}"&gt;
              &lt;td th:text="${itrStat.index}"&gt;&lt;/td&gt;
              &lt;td th:text="${user.username}"&gt;&lt;/td&gt;
              &lt;td&gt;
              &lt;small th:each="report : ${user.reports}"
                  th:utext="${#strings.replace(report.name,companyName +                                      '_','')} : ${companyName}"&gt;&lt;/small&gt;
              &lt;br th:each="report : ${user.reports}"&gt;&lt;/br&gt;&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/tbody&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>the Important part is:</p>
  
  <pre><code>&lt;small th:each="report : ${user.rep orts}"
                      th:utext="${#strings.replace(report.name,companyName + '_','')} : ${companyName}"&gt;&lt;/small&gt;
  </code></pre>
  
  <p>For every report name, I want to remove the companyName prefix. So TEST_filename.txt -> filename.txt</p>
  
  <p>Can someone help me?</p>