Fixed print statement for two-way search