implemented str-cat function