fixed consted for .str() and .flat() methods