using getString method