Optimize Sass Compiler Regular Expressions and toString (#14601)

Avoid unnecessary Pattern.compile() by caching them.
Reduce garbage by using StringBuilder when building with loops.

Change-Id: Id39f90a1733c623fefe7ee4ced89e08febf9db1e