Check if value is a string.