using .collect method to alter encrypted string instead of .each. Seems simpler.