Use is_string and list_strings from abipy.tools