handling strings and ad logging