The most fundamental, versatile, and commonly used transformation is the map operation. It is used to transform some aspect of the data per row to something else.
Using a Map Transformation to Convert all characters in the string to uppercase:
val allCapsRDD = stringRDD.map(line => line.toUpperCase)
allCapsRDD.collect().foreach(println)