Changed is_string to is_scalar