Update string-functions.js

Added function for converting text to lowercase and replacing whitespaces by hyphens