The string will be converted to lowercase before performing string operations which are better than performing the lowercase operation in the middle and the return keyword is being removed from the arrow function since it wasn't required after code refactoring plus it also obstructed readability due to multiple chaining
The string will be converted to lowercase before performing string operations which are better than performing the lowercase operation in the middle and the return keyword is being removed from the arrow function since it wasn't required after code refactoring plus it also obstructed readability due to multiple chaining