modify program to only search for a character called by user