added mini regex match, string to long and trinary tree