extract method displayToUser(string)

refactor by extracting the method displayToUser