Should it return something != 0 here? To indicate that the string was capped? Otherwise the return value is quite useless since it always returns 0.