Adding a trim function to remove trailing and leading whitespace and
extra whitespace between words i.e 
'	show       commands ' will be read 'show commands'