Ensure variable is a string

Signed-off-by: Marc Delisle <marc@infomarc.info>