String theory in β deformed spacetimes