If you use these forms... you don't have to deal with leading or trailing spaces. Patches welcome. TODO Improve documentation. Write tests.