optimize output (ingore space before and after tag and so on)