Avoid use of str()

Signed-off-by: Martin Koistinen <mkoistinen@gmail.com>