insertBeforeInserts the insertText before the specified target in the input string.
input ( string ): The input string.insertText ( string ): The text to insert.target ( string | number ): The index or substring before which to insert the text.string ): A new string with the text inserted.