Fixed input prepend and append

![untitled](https://f.cloud.github.com/assets/971411/690491/284bd206-dafe-11e2-84b8-673f1234a7bb.png)