minor string filter improvement