Only run yaml if basestring