Pass all tests. Make refactoring(forget to make a commit before this). Fix some bugs(rewrite regex patterns).