removeAfterRemoves the part of the input string after the specified target.
input ( string ): The input string.target ( string | number ): The index or substring after which to remove the content.string ): A new string with the content after the target removed.