refactor equal sign parsing into it's own method