Strings #3

updated function and three console logs to test