Added format to getName function.