# Java, 211 Bytes a->{String b="BCDFGHJLMNPQRSTVWXZbcdfghjlmnpqrstvwxz",c="TYPTJKTPSTKRTYPTJKBtyptjktpstkrtyptjkb";a.chars().map(x->{int z;return(z=b.indexOf(x))>-1?c.toCharArray()[z]:x;}).forEach(x->System.out.print((char)x));}; [Try it online!](https://tio.run/##VZHfb4IwEMef51/R8VQSIdnrCFum@2F0bk7IdDM@lFIUhMLakyGGf32sINnivfRyvX7ve59GJCdG5O/qOtt7cUgRjYmUaEpCjo49pCLkwERAKEPLrtJEnoY@4tgBEfINIrrV3lS99pBAQEktUYFsRIybY9fm2dpgeP/4NBo/T19mb3PHfV8sPz3qB5ttFCc8@xIS8u@i1PrU1tyPmTueuDPHncxP@QAOGUQ7yCTsxCn3NIuYdEuExLqZkAwXapyyjEpLMNgLjkvbM0Pus@I1wIWu3xhXt9SEdKje3AlBDlhflevrwqp0M0jFA6HbRsM5SGCJme7BzJR3wLgZoisBq7JOW3bAumVbIInC1jFZrRERG6krZhesYHQPzGUSlM0zVEo8J8DOVM7b27Z/8KgwOdZGLI7TPlqkIvYvtT/Jqq7rnzSDMOWyNhipm3/8BQ "Java (JDK) – Try It Online") Not convinced this is necessarily the best answer, but it's the best I could come up with for now.