def get_valid_options(temp_str,lead_in_text):
    """
    This parses a string of the format:
        
        temp_str = 'These are the options: test1,test2,test3'
        lead_in_text = 'options:'
        
        get_valid_options(temp_str,lead_in_text)
        
        => ['test1','test2','test3']
    """
    
    I = temp_str.find(lead_in_text)
    
    temp_str2 = temp_str[I+len(lead_in_text):]
    
    temp_values = temp_str2.split(',')
    
    current_values = sorted([x.strip() for x in temp_values])
    
    return current_values