Found a better way to replace a and A with #.