deal with host and string