call toString() on sanitised input