       styletext = "\n#{found[0]}\n" + styletext
     # else we try to detect first occurrence of selector and seperate this way 
     else
-      #if setBeginIfNotFound
-      #  styletext = setBeginIfNotFound + '\n' + @original
-      #else
       declarationsEnds = null
       for line in @original.split('\n')
-        declarationsEnds = true if @pattern.isLineSelector.test(line) or @pattern.isMediaQuery
+        declarationsEnds = true if @pattern.isLineSelector.test(line) or @pattern.isMediaQuery.test(line)
         unless declarationsEnds
           declarationPart += '\n'+line
         else 

      regexString = "^\\s+(\\-moz\\-|\\-ms\\-|mso\\-|\\-khtml\\-|\\-webkit\\-|\\-o\\-){0,1}(#{regexString}){1}"
      regex = @pattern.doesLineBeginWithAttribute = new RegExp(regexString)
    regex.test(line)

  parse: (s) ->    
    @original = s if s

            selectorString = ' ' + selectorString unless /^[\.\#\:]{1}/.test(selectorString.trim())
            selectorString =  ( before || '' ) + ' ' + selectorString.trim()

        cssString += "\n#{selectorString} #{DocumentStyle::object_to_css(section[2])}" if values
        if level isnt levelBefore
          levelBefore = level
          selectorBefore = selectorString
