Added some improvement in patch of #10
1) trim()
2) renamed from .diff to .patch