Extracts #hashtags and @mentions from a given string and puts them into individual arrays