strip string before compare