Move strip_syntax to separate method