Added more functions in playstring.cpp