 	                                        paddingNum, 
 	                                        paddingChar);
 	                    }else{
-	                        match.replacement = padString(replacementValue.toString(), paddingNum, paddingChar);
+	                        match.replacement = padString(String(replacementValue), paddingNum, paddingChar);
 	                    }
 	                }else if (formater == INTEGER_FORMATER){
 	                    match.replacement = padString(int(replacementValue).toString(), paddingNum, paddingChar);

    public var replacement : String;
    public var before : String;
    public function toString() : String{
        return "Match [" + startIndex + " - " + endIndex + "] (" + length + ") " + content + ", replacement:" +replacement + ";"
    }
}


                match.endIndex = match.startIndex + match.length;
                match.content = String(result[0]);
                // try to get substitution properties
                formater = result["formater"];
                varName = result["var_name"];
                precision = result["precision"];
                padding = result["padding"];
				paddingNum = 0;
				paddingChar = null;
                //trace('formater:', formater, ', varName:', varName, ', precision:', precision, 'padding:', padding);
