Some solutions about string handling problems