Core: Added the StringGen class for generating strings.

Changed AST::Function to use the new class.