Function asString

Returns x if x is a string, otherwise returns '' (empty string).