Remove sprintf where it's not required