use str.format(); use correct variable