Translated in c++ string and added functionality.