title: Strange result using ColdFusion custom tag
body: <p>I created a simple custom tag which takes a string, replaces whitespace with "-" and "&amp;" with "and" for a querystring (I don't want %20's and the like).</p>
  
  <p>Anyways, it works fine, however my custom tag is creating a space before itself like so:</p>
  
  <p>qsEncode.cfm: (custom tag)</p>
  
  <pre><code>&lt;cfparam name="attributes.string" type="string" default=""&gt;
  
  &lt;cfset whitespace = Replace(attributes.string," ","-","all")&gt;
  &lt;cfset ampersand =  Replace(whitespace,"&amp;","and","all")&gt;
  
  &lt;cfoutput&gt;#ampersand#&lt;/cfoutput&gt;
  </code></pre>
  
  <p>The implementation of the tag:</p>
  
  <pre><code>&lt;a href="?Page=&lt;cf_qsEncode string="#getCategory.Name#"&gt;"&gt;#getCategory.Name#&lt;/a&gt;
  </code></pre>
  
  <p>And the final output which is creating a space before the tag:</p>
  
  <pre><code>somepage.cfm?Page=%20Finance-and-Taxes
  </code></pre>
  
  <p>My custom tag isn't being passed a string that has whitespace prepended to it (and even if it was it would be replaced by the "-" character) so I don't understand why the tag is creating whitespace.</p>
  
  <p><strong>Note:</strong> I do realize I can include <code>?Page=</code> inside my custom tag which would fix it, but I'm still curious as to why this is happening.</p>