Added if-statement for changing A and a to #