diff --git a/lib/util/token.js b/lib/util/token.js
index <HASH>..<HASH> 100644
--- a/lib/util/token.js
+++ b/lib/util/token.js
@@ -74,7 +74,7 @@ function removeInBetween(startToken, endToken, check){
                 remove(startToken);
             }
         }
-        else if (startToken.type === check) {
+        else if (startToken.type === check || startToken.value === check) {
             remove(startToken);
         }
         startToken = startToken.next;
@@ -91,7 +91,7 @@ function findInBetween(startToken, endToken, check){
                 found = startToken;
             }
         }
-        else if (startToken.type === check) {
+        else if (startToken.type === check || startToken.value === check) {
             found = startToken;
         }
         startToken = startToken.next;
@@ -118,7 +118,7 @@ function removeAdjacentBefore(token, check){
             prev = prev.prev;
         }
     } else {
-        while (prev && prev.type === check) {
+        while (prev && (prev.type === check || prev.value === check)) {
             remove(prev);
             prev = prev.prev;
         }
@@ -135,7 +135,7 @@ function removeAdjacentAfter(token, check){
             next = next.next;
         }
     } else {
-        while (next && next.type === check) {
+        while (next && (next.type === check || next.value === check)) {
             remove(next);
             next = next.next;
         }
improve token helpers to accept token.value instead of callback. closes #<I>