refactoring the getter/setter to match the MaxLength variable