init w/ string code

implementations of a few basic string methods