improve substring and Strings tests