Improved performace of nested sed-expressions -> faster parsing
Full output needs ~200 ms
Added some quoting to prevent command execution on variables