Fix advanced search so that trailing zeros in search terms are not truncated. Fixes #82.