hyphenify function added and String.trim() used