adding sd namespace

adding sd namespace
adding sd namespace and organizing string functions