If you want to do a transformation on the text on a character level, and get the transformed text back at the end, you would do something like this:
var value = "alma";
var new_value = value.split("").map(function(x) { return x+"E" }).join("")
So the steps: