trim empty line in the begining and ending of source files