title: Remove part of string after or before a specific word in java
body: <p>Is there a command in java to remove the rest of the string after or before a certain word;</p>
  
  <p>Example:</p>
  
  <p>Remove substring before the word "taken"</p>
  
  <p>before:
  "I need this words removed taken please"</p>
  
  <p>after:</p>
  
  <p>"taken please"</p>