Use an if statement to detect the characters to be ignored and ignore them.
if char is one of the desired 4
then use it
else ignore it