Use sprintf
Combine simular method
Merge pull request #5 from sanemat/feature/keep-dry

Keep dry