new stringValueFrom function