slice
filter is used to extract a portion of a string, array, or other sequence type. It allows you to select a subset of elements or characters by specifying the starting point and the number of elements you want to extract.
slice
filter to get the first three characters of a string: