Refactor magic string