Mirror main's math, string function commit