call to a member function adddays() on string