Extend Ruby String with format specifier.