Strings optimization