Given the reason this function exists at all, I'd be more comfortable if there was a test checking the string equality (with strings of different lengths).