skipe space at begin or end of data