You can use this pattern to mask your raw credit card's number, like this one:
1111222233334444 => 1111-2222-3333-4444