Added optional of params to removeLeft and removeRight

Not sure why removeRight and removeLeft behavior requires that the string ends with that. It's not ideal for matching patterns such as "this is my string (this part could be random)".