improved parse but still neet to substitute function `trim()`.