Some common used functions for stirng