Made tags case insenstive and shaved off line breaks before and after block tags.