Added trim function to hashtags input.