Update Fried-Nathan-Project2.js

String function added