updated test input to handle condition where a post is in an invalid url format
add a new test post that with the type of url that we want to handle
moved selection type function
renamed variables
added function to check if a post has a valid post url
added recursive function that requeries if the post is the wrong format
added slightly janky find and replace function to make the replacing of url strings more robust