Use tr() instead of substitute()
Update documentation