Added send_string() function + code cleaning