handle whitespace, jsfiddle example