Adapt logic to string attempt weight value.