Fixed the problem of removing parantheses