renamed str to xtring