Fixbug of change HasPrefix to HasSuffix