fix compare value since we trim it now