update FindConstString and PrintFilter, some remain untested.