input helper and substring filter for valnr