Fix bug introduced in last commit when string input.

Added test that passes position as string.