for (y=1; y<=Bottom; y++) { for (x=1; x<=Right; x++) { [x,y] = replace([x,y], "\n", ""); } }