only transform value to string if not undefined (closes #76)