Type: Posts; User: Herah
you need to add: maxLength = longName.length(); place this after longName = name;