TrimRight, TrimLeft and Trim types
![](https://kenanhancer.com/wp-content/uploads/2022/04/Screenshot-2022-04-30-at-13.36.08-1024x674.png)
Split and TupleToUnion types
![](https://kenanhancer.com/wp-content/uploads/2022/04/Screenshot-2022-04-30-at-14.49.48-1024x781.png)
![](https://kenanhancer.com/wp-content/uploads/2022/04/Screenshot-2022-04-30-at-14.29.02-1024x356.png)
SplitAsUnion type
![](https://kenanhancer.com/wp-content/uploads/2022/04/Screenshot-2022-04-30-at-14.22.00-1024x584.png)
Replace type
![](https://kenanhancer.com/wp-content/uploads/2022/04/Screenshot-2022-04-30-at-13.51.57-1024x541.png)
Replace and SplitAsUnion types together
This code example does exactly same job as previous code, the only difference is From
generic parameter is splitted union type of S
as shown in line 99, so that when you write From
value, it will show and force you to use any of options.
![](https://kenanhancer.com/wp-content/uploads/2022/04/Screenshot-2022-04-30-at-14.53.52-1024x671.png)
![](https://kenanhancer.com/wp-content/uploads/2022/04/Screenshot-2022-04-30-at-14.54.45-1024x234.png)
ReplaceAll
![](https://kenanhancer.com/wp-content/uploads/2022/04/Screenshot-2022-04-30-at-14.57.01-1024x304.png)