Removed "<<" from @yearmonth line. "<<" does not ONLY concatenate, but it also updates the previous variable with the new concatenation.