How to properly pass values from one form to another if input data has spaces on it?