Add input language argument

This fixes a problem with short strings.