Simplify simpleTabComplete() function a bit