display classname as title and allow line break if needed