handling for comments
removed end of line spaces
fixed top level strip