def str_at_begin_of_str(str1, str2):
    """
        from xdict.utils import *
        str_at_begin_of_str('abc','abcd')
    """
    len1 = str1.__len__()
    begin = str2[:len1]
    if str1 == begin:
        return True
    else:
        return False
