tweak regexes; quotes optional for stylus
consistent substring code style; remove redundant condition
consistent string interpolation