Replaced old command tt by newer ttfamily
Merging of adjacent \text commands is now an own function