added Log and removed condition for updating strings