Filter to capitalize a given word.