Fix display name able to be >16 chars

Also modified method in TextUtils to allow various max lengths.