Using Reduce Method Javascript Substring Negative Symptoms