Currently I'm looking at a function where if a string is less than a certain length then add empty characters until the length is met.
Also if the text is longer than the specified length then remove the trailing characters from that string. 

there are functions like `StringUtils.rightPad` and `subString` , but I'm looking for a function which does both of the tasks at once.