The padEnd task pads the end of a string with another string (repeated if needed) so that the resulting string reaches a specified length. The padding is applied from the right end of the given string.
Use this task when you have a dataset of a known length and want to repeat a value at the end of the current dataset. You can use padEnd to specify the target length and the string to append.
str variable is set to "Hello World" (length: 11 characters). The targetLength is set to 14.padString is "!".
The result is "Hello World!!!" — three exclamation marks are appended to reach the specified targetLength of 14.
