added strip method to Mojo::DOM and fixed a few return value bugs