Reduce the usage of fgrep