#==========================================
#Remove chars within a string
#==========================================

$String = "Lapper sucks when you dont understand it";

$SelectedWord = "sucks "; #Think about the spaces!!!!

#Get the index of the selected chars or word within a string
$GetStartIndex = indexOf( $String, $SelectedWord);
#or without a extra var
$GetStartIndex = indexOf( $String, "sucks ");

#Get the length of the word ($SelectedWord)
$GetLenght = StrLen( $SelectedWord ); #Output should be 6
#or
$GetLenght = StrLen("sucks "); #Output should be 6

#Now its time to remove the selected chars/word
$NewString = remove( $String, $GetStartIndex, $GetLenght);
