Dealing with long words in headers - a recursive approach