Modify input of name in the constructor.