expand Ruby string