Allow to compare strings up to trailing zero