Add unit tests for String.TakeAndRemove