Created a separate method for string manipulation and reverted the database call to only select the price