HUEYTOWN, Alabama - Hueytown police have filed formal charges against a man they say tried unsuccessfully to rob Walmart in that city before moving on to nearby Bessemer.

Joshua Humphries, 36, is charged with robbery and making terrorist threats, said Hueytown police Chief Chuck Hagler. His bond for those charges is set at $75,000.

Humphries, of Sylvan Springs, surrendered to lawmen Thursday night after his picture was released in connection with a bank robbery inside Bessemer's Walmart. A second man, believed to be his getaway driver, also turned himself into Bessemer police.

Hagler said Humphries entered Walmart on Red Farmer Drive just before 10 a.m. and handed an employee a note, threatening of a bomb. Store officials evacuated the building, but police quickly deemed there was no threat.

At 10:11 a.m., he then entered Bessemer's Walmart on Academy Drive at 10:11 a.m. Once inside, he went directly to Wood Forest National Bank in the store and passed the teller a note with his demands. He left the store with an undisclosed amount of cash. Police say a black male was seen leaving with him.

Authorities tell AL.com the man used the same note bearing the word "bomb" on it at both locations.

Police said Humphries turned himself into Bessemer police late Thursday. Officers from Bessemer and Hueytown had been aggressively searching for him after learning his identity. The second suspect, the accused getaway driver, also turned himself in under pressure, authorities said.

Both are being held in the Bessemer City Jail. Warrants from Bessemer could come later today.