normalize-space Function is used to return the argument string with the leading, trailing, and repeating white spaces stripped.
Example: returnedstring normalize-space(inputstring)
if inputstring = 'this is after some space'
then the returnedstring will be 'this is after some space'