make sure input is a string