Add method to String to check that regex does indeed work