implement longest_capitalized + tests