Use lengths for text instead of \0