Fixed syntax errors in the str methods