def clean_str_and_capitalize(s):
    """Trim whitespace, modify string so first letter capitalized."""
    if s.__class__ == str:
        s = s.strip()
        s = s.lower()
        s = s.capitalize()
    return s