Bad-algorithm find substr in mainstr, who can hack it? use KMP?
delete findchr.py