Strings operations with Vanilla JS functions