def get_str_configs(keys, layer_type_prefix, layer_table):
    """
    Extract the str options from the model table

    Parameters
    ----------
    keys : list-of-strings
        Specifies the list of str variables.
    layer_type_prefix : string
        Specifies the prefix of the options in the model table.
    layer_table : table
        Specifies the selection of table containing the information
        for the layer.

    Returns
    -------
    :class:`dict`
        Options that can be passed to layer definition.

    """
    layer_config = dict()
    for key in keys:
        try:
            layer_config[key] = layer_table['_DLChrVal_'][layer_table[
                '_DLKey1_'] == layer_type_prefix + '.' + key.lower().
                replace('_', '')].tolist()[0]
        except IndexError:
            pass
    return layer_config
