Fixed errors with strchr() usage and now erases prompt for easier reading