Changed response construction to use hw_string which allows removing the use of strlen().