Precision preparation of strings of trapped neutral atoms