def METHOD_NAME(text):
    if text:
        # take first 500 chars, upper case and split into string
        # to get individual keywords
        t = text[0:PROC_CHAR_LIMIT].upper().split()
        idx_create = _get_index_for_keyword(t, 'CREATE')
        idx_proc = _get_index_for_keyword(t, 'PROCEDURE')
        if idx_proc < 0:
            idx_proc = _get_index_for_keyword(t, 'PROC')
        # ensure either PROC or PROCEDURE are found and CREATE occurs before PROCEDURE
        if 0 <= idx_create < idx_proc and idx_proc >= 0:
            return True, _get_procedure_name(t, idx_proc)
    return False, None