added function to copy string to horizontal row