Added method in user model to parse strings for cart