Fixed Performance Issue in AbstractFunction

Fixed: Every string concatiation inside the AbstractFunction class is now done using a StringBuffer.