diff --git a/code/libraries/joomlatools/library/template/filter/abstract.php b/code/libraries/joomlatools/library/template/filter/abstract.php
index <HASH>..<HASH> 100644
--- a/code/libraries/joomlatools/library/template/filter/abstract.php
+++ b/code/libraries/joomlatools/library/template/filter/abstract.php
@@ -157,6 +157,6 @@ abstract class KTemplateFilterAbstract extends KObject implements KTemplateFilte
             }
         }
 
-        return implode(' ', $output);
+        return !empty($output) ? ' '.implode(' ', $output) : '';
     }
 }
#<I> - Only output attributes if they exist and prepend with an empty space.