change getNameStr() to getName()