I read on a few other posts with solutions similar to my question but none of them seemed to work when I compiled them on solidity.
I am trying to simply add two strings and return the value.
contract AddTwoStrings {
string sentence; string more_text;function AddTwoStrings(){ sentence = "this is a sentence"; more_text = " additional text added."; }
function add_string() returns (string str){ str = sentence + more_text; // return str; }
}