str methods implementation