Check if object is a string