Another improvement to the string test (#580)