Ensure input is a string.

Signed-off-by: Toha <tohenk@yahoo.com>