NEW_STRING = STRIP(' MUCH BLANK SPACE ',B) SAY NEW_STRING
-
" MUCH BLANK SPACE "
-
" MUCH BLANK SPACE"
-
"MUCH BLANK SPACE "
-
"MUCH BLANK SPACE"
D
Correct answer
Explanation
The STRIP function in REXX removes leading and trailing blanks from a string. The second parameter 'B' means 'both' - strip from both beginning and end. So ' MUCH BLANK SPACE ' becomes 'MUCH BLANK SPACE' with all leading and trailing spaces removed.