Splitted the Str::separated() function to reduce the complexity of the functions.
Splitted the Str::truncate() function to reduce its complexity.