fix strings with only leading ones