Append special characters to name

Hi,Please some one helo how to pass name value with all special characters one by one using for loop

Example: instead of test i need to pass (test!,Test@,Test#,Test$,TEst%,Test^,Test&,Test*,Test(…etc)

WebUI.setText(findTestObject('Object Repository/Pag_xx/input_Name '),
‘test’)

String word = "test"
List specChars = ["!", "@", "#", "\$", "%"]

for(String ch in specChars) {
	WebUI.setText(findTestObject('Object Repository/Pag_xx/input_Name'), word + ch)
}