I need to have a fixed length for the string I manipulate.
For e.g. if the word is 'someword' and I want it to be of fixed length 5, then script should strip the extra 3 (5-length of word i.e. 8) characters and give me the word - 'somew'.
Whereas if the fixed length is to be 10 (10 - length of word i.e. 8), then script should add 2 spaces to the word i.e. 'someword##'.
# - denotes the blank space.