def ask_str(question, default_val=''):
    """ read a string from a command line, apply default_val if the input is empty """
    val = input(question).strip()
    if not val:
        val = default_val
    return val
