echofunc bug fix for ( ) match check and autocomplete  check

hope to be merged into main branch