Fixed string replace return value not being used in credit card filter.

Also generally tidied up credit card filter file.