remove whitespaces at beginning & end of text