Advanced string handling for Sass