Fixed String function 5 and array function number 2.
cleaned out unnecessary console logs.