added: copy and equal function for two string objects